package com.ctshk.rpc.custom.mapper;

import com.ctshk.rpc.custom.entity.CustomizedQuotationFreeQuotePackage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * 报价单自由报价套餐 Mapper 接口
 * </p>
 *
 * @author 谢诗宏
 * @since 2021-01-16
 */
public interface CustomizedQuotationFreeQuotePackageMapper extends BaseMapper<CustomizedQuotationFreeQuotePackage> {

    @Update("UPDATE t_customized_quotation_free_quote_package \n" +
            "SET is_deleted = 1,modified_id = #{modified_id}\n" +
            "WHERE quotation_id = #{quotation_id}")
    Integer clearData(@Param("quotation_id") Long quotationId, @Param("modified_id") long userId);

}
